{% extends "base.html" %}


{% block  title %}批量命令{% endblock %}

{% block page-content %}


    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>批量命令</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index.html">主页</a>
                </li>
                <li>
                    <a>历史记录</a>
                </li>
                <li class="active">
                    <strong>批量命令</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>


        <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="panel-options">
                        <ul class="nav nav-tabs">
                            <li >
                                <a class="text-center"  href="{% url "names:login_history" %}"><i class="fa fa-laptop"></i>平台登陆</a>
                            </li>
                             <li >
                                <a class="text-center" href="{% url  "names:web_history" %}"><i class="fa fa-laptop"></i>主机登陆</a>
                            </li>
                            <li class="active">
                                <a class="text-center"   href="{% url "names:cmd_history" %}"><i class="fa fa-laptop"></i>批量命令</a>
                            </li>
                        </ul>
                    </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>批量命令</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a href="#">选项 1</a>
                                </li>
                                <li><a href="#">选项 2</a>
                                </li>
                            </ul>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">

                          <div class="table-responsive">


                            <form id="del_form_asset_all" class="form-horizontal  ">
                                <table class="table table-striped table-bordered table-hover dataTables-example">
                                    <thead>
                                    <tr>
                                        <th>IP</th>
                                         <th>时间</th>
                                        <th>用户</th>
                                        <th>命令</th>
                                        <th>操作者</th>
                                        <th>端口</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    {% for   row   in   historys %}

                                        <tr class="gradeA">
                                              <td>{{ row.ip }}</td>
                                              <td>{{ row.ctime }}</td>
                                              <td>{{ row.root }}</td>
                                              <td>{{ row.cmd }}</td>

                                             <td>{{ row.user }}</td>
                                            <td class="center">{{ row.port }}</td>





                                        </tr>
                                    {% endfor %}

                                    </tbody>
                                <thead>
                                    <tr>
                                        <th>IP</th>
                                        <th>时间</th>
                                        <th>用户</th>
                                        <th>命令</th>
                                        <th>操作者</th>
                                        <th>端口</th>
                                    </tr>
                                </thead>
                                </table>
                            </form>


                        </div>

                    </div>
                </div>


                </div>
            </div>
        </div>
    </div>






{% block footer-js %}

{% endblock %}

{% endblock %}